<template>
    <div class="wheel">
     <swiper :options="swiperOption" ref="mySwiper">
         <swiper-slide v-for="item of list" :key="item.id">
           <img :src="item.imgUrl">
         </swiper-slide>
         <div class="swiper-pagination"  slot="pagination"></div>
       </swiper>
    </div>
</template>
<script>

export default {
  name: 'HomeWheel',
  props: {
    list: Array
  },
  data () {
    return {
      swiperOption: {
        autoplay: {
          delay: 2000,
          disableOnInteraction: false
        },
        pagination: {
          el: '.swiper-pagination'
        },
        loop: true
      }
    }
  }
}
</script>
<style lang="stylus" scoped="scoped">
  .wheel >>> .swiper-pagination-bullet-active
    background #FFFFFF
  .wheel
    height: 0rem
    overflow: hidden
    padding-bottom: 26.67%
    img
      width 100%
</style>
